<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditParamsDetailsTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditParamsDetailsLabel_idparamsDetails}" for="idparamsDetails" />
                    <h:inputText id="idparamsDetails" value="#{paramsDetailsController.selected.idparamsDetails}" title="#{bundle.EditParamsDetailsTitle_idparamsDetails}" required="true" requiredMessage="#{bundle.EditParamsDetailsRequiredMessage_idparamsDetails}"/>
                    <h:outputLabel value="#{bundle.EditParamsDetailsLabel_date1}" for="date1" />
                    <h:inputText id="date1" value="#{paramsDetailsController.selected.date1}" title="#{bundle.EditParamsDetailsTitle_date1}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditParamsDetailsLabel_date2}" for="date2" />
                    <h:inputText id="date2" value="#{paramsDetailsController.selected.date2}" title="#{bundle.EditParamsDetailsTitle_date2}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditParamsDetailsLabel_personnelIdpersonnel}" for="personnelIdpersonnel" />
                    <h:selectOneMenu id="personnelIdpersonnel" value="#{paramsDetailsController.selected.personnelIdpersonnel}" title="#{bundle.EditParamsDetailsTitle_personnelIdpersonnel}" required="true" requiredMessage="#{bundle.EditParamsDetailsRequiredMessage_personnelIdpersonnel}">
                        <f:selectItems value="#{personnelController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditParamsDetailsLabel_paramsIdparams}" for="paramsIdparams" />
                    <h:selectOneMenu id="paramsIdparams" value="#{paramsDetailsController.selected.paramsIdparams}" title="#{bundle.EditParamsDetailsTitle_paramsIdparams}" required="true" requiredMessage="#{bundle.EditParamsDetailsRequiredMessage_paramsIdparams}">
                        <f:selectItems value="#{paramsController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{paramsDetailsController.update}" value="#{bundle.EditParamsDetailsSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditParamsDetailsViewLink}"/>
                <br />
                <h:commandLink action="#{paramsDetailsController.prepareList}" value="#{bundle.EditParamsDetailsShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditParamsDetailsIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
